package com.edu.bean;

import java.util.List;

public class Press {
    private int pressId;
    private String pressName;
    private String pressAddress;
    private List<Book> bookList;
    private  List<Writer> writerList;

    public List<Writer> getWriterList() {
        return writerList;
    }

    public void setWriterList(List<Writer> writerList) {
        this.writerList = writerList;
    }

    public List<Book> getBookList() {
        return bookList;
    }

    public void setBookList(List<Book> bookList) {
        this.bookList = bookList;
    }

    @Override
    public String toString() {
        return "press{" +
                "pressId=" + pressId +
                ", pressName='" + pressName + '\'' +
                ", pressAddress='" + pressAddress + '\'' +
                '}';
    }

    public int getPressId() {
        return pressId;
    }

    public void setPressId(int pressId) {
        this.pressId = pressId;
    }

    public String getPressName() {
        return pressName;
    }

    public void setPressName(String pressName) {
        this.pressName = pressName;
    }

    public String getPressAddress() {
        return pressAddress;
    }

    public void setPressAddress(String pressAddress) {
        this.pressAddress = pressAddress;
    }
}
